package com.csd.action.manager;

import java.util.List;

import com.csd.helper.ActionResult;
import com.csd.pojo.ChangeRecord;
import com.csd.service.IChangeRecordService;
import com.csd.service.ITeamService;
import com.csd.vo.ChangeRecordVO;
import com.csd.vo.TeamVO;

/**
 * 变更详细信息
 * @author sanmu
 *	<br> 创建于2009-12-17
 */
public class ChangeRecordDetailAction {

	private Integer changeRecordID;
	
	private ChangeRecordVO changeRecordVO;
	
	private IChangeRecordService changeRecordService;
	
	private String returnpage;
	
	public Integer getChangeRecordID() {
		return changeRecordID;
	}

	public void setChangeRecordID(Integer changeRecordID) {
		this.changeRecordID = changeRecordID;
	}

	public ChangeRecordVO getChangeRecordVO() {
		return changeRecordVO;
	}

	public void setChangeRecordVO(ChangeRecordVO changeRecordVO) {
		this.changeRecordVO = changeRecordVO;
	}

	public IChangeRecordService getChangeRecordService() {
		return changeRecordService;
	}

	public void setChangeRecordService(IChangeRecordService changeRecordService) {
		this.changeRecordService = changeRecordService;
	}

	public String execute() throws Exception {
		System.out.println("==========================="+changeRecordID);
		String text = ActionResult.fail;
		//获得变更的详细信息
		changeRecordVO = changeRecordService.searchChangeRecord(changeRecordID);
		text = ActionResult.success;
		return text;
	}

	public void setReturnpage(String returnpage) {
		this.returnpage = returnpage;
	}

	public String getReturnpage() {
		return returnpage;
	}
}
